<!doctype html>
<html>
<head>
<?php $this->load->view('admin/common_head'); ?>
</head>
<body>
<div class="wrap">
	<div class="nav">
		<div class="return"><a href="<?php echo site_url('admin/agency/index'); ?>">返回上一级</a></div>
		<ul class="cc">
			<li class="current"><a href="<?php echo site_url('admin/agency/edit?action=base&agencyid='.$agencyid); ?>">基本资料</a></li>
			<li><a href="<?php echo site_url('admin/agency/edit?action=data&agencyid='.$agencyid); ?>">数据资料</a></li>
			<li><a href="<?php echo site_url('admin/agency/edit?action=right&agencyid='.$agencyid); ?>">权限设置</a></li>
		</ul>
	</div>
	<form id="J_agency_base_form" action="<?php echo site_url('admin/agency/do_edit_base'); ?>" method="post" accept-charset="utf-8">
		<input type="hidden" name="agencyid" value="<?php echo $agency['agencyid']; ?>" />
		<div class="h_a">基本资料</div>
		<div class="table_full">
			<table width="100%">
				<col class="th" />
				<col width="400" />
				<col />
				<tr>
					<th>中介ID</th>
					<td><?php echo $agency['agencyid']; ?></td>
					<td></td>
				</tr>
				<tr>
					<th>名称</th>
					<td><input type="text" name="name" value="<?php echo $agency['name']; ?>" class="input length_5" /></td>
					<td><div class="fun_tips">中介名称必须小于100字符</div></td>
				</tr>
				<tr>
					<th>管理帐号</th>
					<td><input type="text" name="adminname" value="<?php echo $agency['adminname']; ?>" class="input length_5" /></td>
					<td><div class="fun_tips">必须是已存在的帐号</div></td>
				</tr>
				<tr>
					<th>电话</th>
					<td><input type="text" name="telphone" value="<?php echo $agency['telphone']; ?>" class="input length_5" /></td>
					<td><div class="fun_tips">例如：0760-00000000</div></td>
				</tr>
				<tr>
					<th>传真</th>
					<td><input type="text" name="fax" value="<?php echo $agency['fax']; ?>" class="input length_5" /></td>
					<td><div class="fun_tips">例如：0760-00000000</div></td>
				</tr>
				<tr>
					<th>地址</th>
					<td><input type="text" name="address" value="<?php echo $agency['address']; ?>" class="input length_5" /></td>
					<td><div class="fun_tips">例如：XX市XX区XX路XX号</div></td>
				</tr>
				<tr>
					<th>Logo</th>
					<td>
						<div class="single_image_up"><a href="">上传图片</a><input data-preview="#J_icon_preview" name="icon" type="file" class="J_upload_preview" /></div>
						<img id="J_icon_preview" style="display:none; width:200px; height:80;" />
					</td>
					<td><div class="fun_tips">建议尺寸：200×80像素</div></td>
				</tr>
				<tr>
					<th>背景</th>
					<td>
						<div class="single_image_up"><a href="">上传图片</a><input data-preview="#J_bgimg_preview" name="bgimg" type="file" class="J_upload_preview" /></div>
						<img id="J_bgimg_preview" style="display:none; width:300px; height:47;" />
					</td>
					<td><div class="fun_tips">建议尺寸：960×150像素</div></td>
				</tr>
				<tr>
					<th>是否开启</th>
					<td>
						<ul class="switch_list cc">
							<li class="current"><label><input type="radio" value="1" name="isopen" <?php echo set_radio('isopen', 1, $agency['isopen'] == 1); ?> /><span>开启</span></label>
							</li>
							<li><label><input type="radio" value="0" name="isopen" <?php echo set_radio('isopen', 0, $agency['isopen'] == 0); ?> /><span>关闭</span></label></li>
						</ul>
					</td>
					<td></td>
				</tr>
				<tr>
					<th>排序</th>
					<td><input type="text" name="vieworder" value="<?php echo $agency['vieworder']; ?>" class="input length_5"></td>
					<td><div class="fun_tips">越小越靠前</div></td>
				</tr>
				<tr>
					<th>创建时间</th>
					<td><input type="text" name="created" value="<?php echo date('Y-m-d H:i', $agency['created']); ?>" class="input J_datetime length_5" /></td>
					<td></td>
				</tr>
				<tr>
					<th>最后一次修改时间</th>
					<td><?php echo date('Y-m-d H:i', $agency['updated']); ?></td>
					<td></td>
				</tr>
			</table>
		</div>
		<div class="btn_wrap">
			<div class="btn_wrap_pd">
				<button type="submit" class="btn btn_submit">提交</button>
			</div>
		</div>
	</form>
</div>
<?php $this->load->view('admin/common_footer'); ?>
</body>
</html>